import request from '@/utils/request'

// 查询危废入库列表
export function listPreEntryWarehouse(query) {
    return request({
        url: '/business/entryWarehouse/preEntryList',
        method: 'get',
        params: query
    })
}

// 查询危废入库列表
export function listEntryWarehouse(query) {
    return request({
        url: '/business/entryWarehouse/list',
        method: 'get',
        params: query
    })
}

// 查询危废入库详细
export function getEntryWarehouse(entryWarehouseId) {
    return request({
        url: '/business/entryWarehouse/' + entryWarehouseId,
        method: 'get'
    })
}

// 新增危废入库
export function addEntryWarehouse(data) {
    return request({
        url: '/business/entryWarehouse',
        method: 'post',
        data: data
    })
}

// 修改危废入库
export function updateEntryWarehouse(data) {
    return request({
        url: '/business/entryWarehouse',
        method: 'put',
        data: data
    })
}

// 删除危废入库
export function delEntryWarehouse(entryWarehouseId) {
    return request({
        url: '/business/entryWarehouse/' + entryWarehouseId,
        method: 'delete'
    })
}

// 导出危废待入库
export function exportPreEntryWarehouse(query) {
    return request({
        url: '/business/entryWarehouse/preEntryExport',
        method: 'get',
        params: query
    })
}

// 导出危废入库
export function exportEntryWarehouse(query) {
    return request({
        url: '/business/entryWarehouse/export',
        method: 'get',
        params: query
    })
}